package com.xingxue.shopping.model.persist;

import java.util.Date;

public class car {

	 private Integer  carid;
	 private Integer userid;
	 private Integer goodsid;
	 private Date ordertime;
	 private Integer ordercount;
	 private Integer gprice;
	 private Integer usercheck;
	 private String orderprice;
	public Integer getCarid() {
		return carid;
	}
	public void setCarid(Integer carid) {
		this.carid = carid;
	}
	public Integer getUserid() {
		return userid;
	}
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	public Integer getGoodsid() {
		return goodsid;
	}
	public void setGoodsid(Integer goodsid) {
		this.goodsid = goodsid;
	}
	public Date getOrdertime() {
		return ordertime;
	}
	public void setOrdertime(Date ordertime) {
		this.ordertime = ordertime;
	}
	public Integer getOrdercount() {
		return ordercount;
	}
	public void setOrdercount(Integer ordercount) {
		this.ordercount = ordercount;
	}
	public Integer getGprice() {
		return gprice;
	}
	public void setGprice(Integer gprice) {
		this.gprice = gprice;
	}
	public Integer getUsercheck() {
		return usercheck;
	}
	public void setUsercheck(Integer usercheck) {
		this.usercheck = usercheck;
	}
	public String getOrderprice() {
		return orderprice;
	}
	public void setOrderprice(String orderprice) {
		this.orderprice = orderprice;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((carid == null) ? 0 : carid.hashCode());
		result = prime * result + ((goodsid == null) ? 0 : goodsid.hashCode());
		result = prime * result + ((gprice == null) ? 0 : gprice.hashCode());
		result = prime * result + ((ordercount == null) ? 0 : ordercount.hashCode());
		result = prime * result + ((orderprice == null) ? 0 : orderprice.hashCode());
		result = prime * result + ((ordertime == null) ? 0 : ordertime.hashCode());
		result = prime * result + ((usercheck == null) ? 0 : usercheck.hashCode());
		result = prime * result + ((userid == null) ? 0 : userid.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		car other = (car) obj;
		if (carid == null) {
			if (other.carid != null)
				return false;
		} else if (!carid.equals(other.carid))
			return false;
		if (goodsid == null) {
			if (other.goodsid != null)
				return false;
		} else if (!goodsid.equals(other.goodsid))
			return false;
		if (gprice == null) {
			if (other.gprice != null)
				return false;
		} else if (!gprice.equals(other.gprice))
			return false;
		if (ordercount == null) {
			if (other.ordercount != null)
				return false;
		} else if (!ordercount.equals(other.ordercount))
			return false;
		if (orderprice == null) {
			if (other.orderprice != null)
				return false;
		} else if (!orderprice.equals(other.orderprice))
			return false;
		if (ordertime == null) {
			if (other.ordertime != null)
				return false;
		} else if (!ordertime.equals(other.ordertime))
			return false;
		if (usercheck == null) {
			if (other.usercheck != null)
				return false;
		} else if (!usercheck.equals(other.usercheck))
			return false;
		if (userid == null) {
			if (other.userid != null)
				return false;
		} else if (!userid.equals(other.userid))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "car [carid=" + carid + ", userid=" + userid + ", goodsid=" + goodsid + ", ordertime=" + ordertime
				+ ", ordercount=" + ordercount + ", gprice=" + gprice + ", usercheck=" + usercheck + ", orderprice="
				+ orderprice + "]";
	}
	 
	 
}
